﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Program06_CashShop
{
    /// <summary>
    /// 实现原价打几折
    /// </summary>
    public class CashRebate : CashSuper
    {
        private double _monerRebate = 1d;
        public CashRebate (double moneyRebate)
        {
            this._monerRebate = moneyRebate;
        }
        public override decimal AcceptCash(decimal money)
        {
            return money *(decimal) _monerRebate;
        }
    }
}
